<!doctype html> <!-- Start of page HTML5 enabled -->
<head> <!-- Start of head  -->
	<meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<title>
	 <?php
	   global $super_options,$helper;
					    if(is_home()) echo bloginfo(__('name') , 'h-framework' );
					    elseif(is_category()) {
					         _e('Browsing the Category ' , 'h-framework' );
					          wp_title(' ', true, '');
					  } elseif(is_archive()) wp_title('', true,'');
					    elseif(is_search())  echo __( 'Search Results for' , 'h-framework' ).$s;
					    elseif(is_404())     _e( '404 - Page got lost!'  , 'h-framework');
					    else                 bloginfo(__('name' , 'h-framework')); wp_title(__('-' , 'h-framework'), true, '');
					  
      ?></title>
	
    
	<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" /><!-- Feed  -->
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    
	<?php if ( is_singular() && get_option( 'thread_comments' ) )      wp_enqueue_script( 'comment-reply' );
		     wp_head(); ?>
    
    <!--[if IE 9]>
            <link rel="stylesheet" type="text/css" href="<?php echo URL; ?>/sprites/stylesheets/ie9.css" />
        <![endif]-->  
        <!--[if IE 8]>
            <link rel="stylesheet" type="text/css" href="<?php echo URL; ?>/sprites/stylesheets/ie8.css" />
        <![endif]-->  
     <!--[if IE 7]>
            <link rel="stylesheet" type="text/css" href="<?php echo URL; ?>/sprites/stylesheets/ie7.css" />
        <![endif]-->  
<link rel="stylesheet" href="../wp-content/themes/felici/fancybox/source/helpers/jquery.fancybox-buttons.css?v=1.0.2" type="text/css" media="screen" /> 
<script type="text/javascript" src="../wp-content/themes/felici/fancybox/lib/jquery.mousewheel-3.0.6.pack.js"></script>
<link rel="stylesheet" href="../wp-content/themes/felici/fancybox/source/jquery.fancybox.css?v=2.0.6" type="text/css" media="screen" />
<script type="text/javascript" src="../wp-content/themes/felici/fancybox/source/jquery.fancybox.pack.js?v=2.0.6"></script>

<script type="text/javascript" src="../wp-content/themes/felici/fancybox/source/helpers/jquery.fancybox-buttons.js?v=1.0.2"></script>
<script type="text/javascript" src="../wp-content/themes/felici/fancybox/source/helpers/jquery.fancybox-media.js?v=1.0.0"></script>
<link rel="stylesheet" href="../wp-content/themes/felici/fancybox/source/helpers/jquery.fancybox-thumbs.css?v=2.0.6" type="text/css" media="screen" />
<script type="text/javascript" src="../wp-content/themes/felici/fancybox/source/helpers/jquery.fancybox-thumbs.js?v=2.0.6"></script>
</head> 
 
<body> 


<div id="top-bar" class="clearfix skeleton" >
 <a href="<?php echo home_url(); ?>" id="logo"><img src="<?php echo $super_options[SN."_logo"]; ?>" alt="logo" /></a>
 
 <?php if($super_options[SN."_banner_enable"]=="true" || $super_options[SN."_banner_enable"]=="")include(HPATH."/helper/topbanner.php"); ?>  
   


</div>


<div id="main-menu" class="skeleton">     
    <?php 
            if(function_exists("wp_nav_menu"))
            {
                wp_nav_menu(array(
                            'theme_location'=>'primary_nav',
                            'container'=>'',
                            'depth' => 3,
                            'container_class' => 'clearfix',
                            'menu_id' => 'menu')
                            );
            } 
        ?>
</div>      
<div class="noticebar skeleton clearfix">
 
 <div class="notice clearfix">
 	
   <ul class="top-social-icons clearfix">
   		<?php if(get_option(SN."_twitter_link")!="") : ?><li class="twitter"><a href="<?php echo get_option(SN."_twitter_link") ?>">Twitter</a></li><?php endif; ?>
        <?php if(get_option(SN."_fb_link")!="") : ?><li class="facebook"><a href="<?php echo get_option(SN."_fb_link") ?>">Facebook</a></li><?php endif; ?>
        <?php if(get_option(SN."_rss_link")!="") : ?><li class="rss"><a href="<?php echo get_option(SN."_rss_link") ?>">RSS</a></li><?php endif; ?>
        <?php if(get_option(SN."_linked_link")!="") : ?><li class="linkedin"><a href="<?php echo get_option(SN."_linked_link") ?>">Linkedin</a></li><?php endif; ?>
        <?php if(get_option(SN."_stumble_link")!="") : ?><li class="stumble"><a href="<?php echo get_option(SN."_stumble_link") ?>">Stumble</a></li><?php endif; ?>
   </ul>
    
 </div>
 <?php 
  $category_ids = get_all_category_ids();
	$select_box = '<select name="cat" id="cat"> <option value="all"> All </option>';
	foreach($category_ids as $cat_id) {
  		$cat_name = get_cat_name($cat_id);
  		$select_box = $select_box . "<option value='".$cat_id."'>". $cat_name."</option>";
	}
$select_box = $select_box . '</select>';
 
 ?>
  <form method="get" id="search_form"  action="<?php echo home_url(); ?>/" class="top-searchbar clearfix" >
    
 		 <input type="text" value="<?php if(isset($_GET['s'])) echo $_GET['s']; else echo 'Search the site ...'; ?>" name="s" id="s" />
		 <?php echo $select_box ?>
         
         <div class="search-button-wrapper clearfix"><input type="submit" value="Search" id="searchbutton" /></div>
	 
  </form>
<link rel="stylesheet" href="<?php echo URL; ?>/sprites/customized.css" />
</div>